<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model app\models\LoginForm */

use yii\helpers\Html;
use yii\widgets\ActiveForm;

$this->title = '后台登录';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-login panel panel-body">

   <div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><?= Html::encode($this->title) ?></h3>
            </div>

            <div class="panel-body">
                <?php $form = ActiveForm::begin([
                    'id' => 'login-form',
                ]); ?>

                <?= $form->field($model, 'adname')->textInput(['autofocus' => true])->label('账号') ?>

                <?= $form->field($model, 'adpass')->passwordInput()->label('密码') ?>

                <div class="form-group">
                    
                    <?= Html::submitButton('登录', ['class' => 'btn btn-primary btn-block', 'name' => 'login-button']) ?>
                  
                </div>

            <?php ActiveForm::end(); ?>
            </div>
        </div>
    </div>


</div>
